package com.bwie.bean;

/**
 * day11
 *
 * @author LQ&LYP lq
 * @ClassName Student
 * @description: TODO
 * @date 2025年03月05日
 * @version: 1.0
 */
public class Student {


        private    String  name;
        private   String  sex;
        private    String  hobby;
        private    int   age;


        public Student() {
        }

        public Student(String name, String sex, String hobby, int age) {
                this.name = name;
                this.sex = sex;
                this.hobby = hobby;
                this.age = age;
        }

        /**
         * 获取
         * @return name
         */
        public String getName() {
                return name;
        }

        /**
         * 设置
         * @param name
         */
        public void setName(String name) {
                this.name = name;
        }

        /**
         * 获取
         * @return sex
         */
        public String getSex() {
                return sex;
        }

        /**
         * 设置
         * @param sex
         */
        public void setSex(String sex) {
                this.sex = sex;
        }

        /**
         * 获取
         * @return hobby
         */
        public String getHobby() {
                return hobby;
        }

        /**
         * 设置
         * @param hobby
         */
        public void setHobby(String hobby) {
                this.hobby = hobby;
        }

        /**
         * 获取
         * @return age
         */
        public int getAge() {
                return age;
        }

        /**
         * 设置
         * @param age
         */
        public void setAge(int age) {
                this.age = age;
        }

        @Override
        public String toString() {
                return "Student{name = " + name + ", sex = " + sex + ", hobby = " + hobby + ", age = " + age + "}";
        }

       /**
       * @Author: liquan
       * @Description: 功能方法
       * @date: 2025-03-05
       * @Params:  * @param null
       * @Return: null
       */
          public  void add(String  name){
                  System.out.println(name);
          }
        private  int  add(int   age){
             return    age;
        }
}
